package com.shaoshaohuo.app.utils;


import android.widget.Toast;

import com.shaoshaohuo.app.SshApplication;

/** 
* @ClassName: ToastUtil 
* @说明:toast
* @author yusonglin
* @date 2015年9月24日 上午10:29:06 
*/ 

public class ToastUtil {

    public static void toast(String content) {
        if (content != null) {
            Toast.makeText(SshApplication.getContext(), content, Toast.LENGTH_SHORT).show();
        }
    }

    public static void toast(int res) {
        if (res > 0) {
            Toast.makeText(SshApplication.getContext(), res, Toast.LENGTH_SHORT).show();
        }
    }
}
